package com.ah;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
//扫描 mybatis mapper 包路径
@MapperScan(basePackages = "com.ah.shanxi_demo.mapper")
@ComponentScan(basePackages= {"com"})
@EnableAsync
@EnableScheduling
@EnableSwagger2
@EnableTransactionManagement(proxyTargetClass = true)
public class ShanxiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShanxiApplication.class, args);
    }






}
